import Layout from '@/layout'

const dataTaskRouter = {
  path: '/dataTask',
  component: Layout,
  // redirect: '/dataTask/table',
  name: 'DataTask',
  meta: { title: '数据任务', roles: ['report-template', 'task-template', 'task-publish'], icon: 'el-icon-s-data' },
  children: [
    {
      path: 'taskTemplate',
      name: 'TaskTemplate',
      component: () => import('@/views/dataTask/taskTemplate/list.vue'),
      meta: { title: '任务模板', roles: ['task-template'], icon: 'el-icon-s-order' }
    },
    {
      path: 'taskPublish',
      name: 'TaskPublish',
      component: () => import('@/views/dataTask/taskPublish/list.vue'),
      meta: { title: '任务发布', roles: ['task-publish'], icon: 'el-icon-s-order' }
    },
    {
      path: 'dataTemplate',
      name: 'dataTemplate',
      component: () => import('@/views/dataTask/dataTemplate/index.vue'),
      meta: { title: '报表模板', roles: ['report-template'], icon: 'el-icon-s-order' }
    }
  ]
}

export default dataTaskRouter
